package com.selune.online.ordering.system.project.demo.service;


import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.selune.online.ordering.system.project.api.base.response.Response;
import com.selune.online.ordering.system.project.demo.entity.Demo;
import com.selune.online.ordering.system.project.demo.entity.DemoSearch;
import java.util.List;

/**
 * @author xiaoyp
 * @date 2020/2/27
 */

public interface DemoService {
	
	Response<Boolean> save(Demo demo);
	
	Response<List<Demo>> list();
	
	Response<Boolean> update(Long id, Demo demo);
	
	Response<Demo> select(Long id);
	
	Response<Page<Demo>> page(Integer current, Integer size);
	
	Response<Page<Demo>> pageByCondition(Integer current, Integer size, DemoSearch demoSearch);
	
	Response<Boolean> deleteById(Long id);
	
	Response<Boolean> deleteByIds(List<Long> ids);
}
